//
//  MenuCell.swift
//  ExpressDriver
//
//  Created by yongkang on 2017/11/17.
//  Copyright © 2017年 sheng. All rights reserved.
//

import UIKit
import SnapKit

class MenuCell: UITableViewCell {
    
    
    @IBOutlet weak var label: UILabel!
    
    @IBOutlet weak var titleImage: UIImageView!
    

    override func awakeFromNib() {
        super.awakeFromNib()
        self.backgroundColor = UIColor(colorLiteralRed: 13.0 / 255.0, green: 184.0 / 255.0, blue: 246.0 / 255.0, alpha: 1.0)
        
        titleImage.snp.makeConstraints { (make) in
            make.left.equalTo(15)
            make.height.width.equalTo(20)
            make.centerY.equalTo(self)
        }
        
        label.snp.makeConstraints { (make) in
            make.left.equalTo(titleImage.snp.right).offset(15)
            make.centerY.equalTo(self)
        }
        
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
